package com.kd.spring.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kd.spring.dao.OrderDao;
import com.kd.spring.dao.ProductDao;

@Configuration
public class myConfiguration {
	@Bean(name="productDao")
	public ProductDao getProductDao(){
		ProductDao productDao = new ProductDao();
		productDao.setInfo("this is productDao");
		return productDao;
	}
	
	@Bean(name="orderDao")
	public OrderDao getOrderDao(){
		OrderDao orderDao = new OrderDao();
		orderDao.setMaxMoney(100000);
		return orderDao;
	}
}
	